package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 客户发票寄送信息枚举
 *
 * @author feng.zheng
 * @version v1.0
 * @date 2019/1/28 16:33
 * @since v1.0
 */
@Getter
public enum CustomerExpressEnum {
    // 客户发票寄送信息枚举
    NAME("text_1", "enum.customerExpress.name.name", "name"),
    CONTACT("text_2", "enum.customerExpress.name.contact", "contact"),
    PHONE("text_3", "enum.customerExpress.name.phone", "phone"),
    ZIP_CODE("text_4", "enum.customerExpress.name.zip_code", "zipCode"),
    ADDRESS("address_1", "enum.customerExpress.name.address", "address"),
    CUSTOMER_EXPRESS_ID("text_5", "enum.customerExpress.name.customer_express_id", "customerExpressId");
    /**
     * attr
     */
    private String attr;
    /**
     * 名称
     */
    private String name;

    /**
     * saasAttr
     */
    private String saasAttr;


    CustomerExpressEnum(String attr, String name, String saasAttr) {
        this.name = name;
        this.saasAttr = saasAttr;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
